Skip to content

chore(WebSocketShard): improve zlib-sync errors#10808

Merged
kodiakhq[bot] merged 4 commits intodiscordjs:mainfrom
LJNeon:main
Jul 2, 2025
Merged

chore(WebSocketShard): improve zlib-sync errors#10808
kodiakhq[bot] merged 4 commits intodiscordjs:mainfrom
LJNeon:main

Conversation

@LJNeon
Copy link
Copy Markdown
Contributor

@LJNeon LJNeon commented Mar 18, 2025

Please describe the changes this PR makes and why it should be merged:
The current error thrown from zlib-sync isn't great, and doesn't match what errors from node:zlib look like. This brings them more in line with node:zlib errors.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@LJNeon LJNeon requested a review from a team as a code owner March 18, 2025 19:35
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 11:13pm
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2025 11:13pm

Comment thread packages/ws/src/ws/WebSocketShard.ts Outdated
@Jiralite Jiralite added this to the ws 3.0.0 milestone May 2, 2025
@Jiralite Jiralite requested a review from almeidx May 28, 2025 18:44
@LJNeon
Copy link
Copy Markdown
Contributor Author

LJNeon commented May 28, 2025

I can't reproduce that test failure locally, not sure what happened there?

Comment thread packages/ws/src/utils/constants.ts Outdated
@github-project-automation github-project-automation Bot moved this from Todo to Review in Progress in discord.js May 28, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2025

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 42.66%. Comparing base (02fbb70) to head (7cbd50d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/ws/src/ws/WebSocketShard.ts 0.00% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10808      +/-   ##
==========================================
- Coverage   42.69%   42.66%   -0.03%     
==========================================
  Files         262      262              
  Lines       16085    16095      +10     
  Branches     1543     1543              
==========================================
  Hits         6867     6867              
- Misses       9206     9216      +10     
  Partials       12       12              
Flag Coverage Δ
core 0.89% <ø> (ø)
ws 36.03% <0.00%> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@iCrawl iCrawl requested a review from almeidx June 2, 2025 17:27
@github-project-automation github-project-automation Bot moved this from Review in Progress to Review Approved in discord.js Jun 2, 2025
Comment thread packages/ws/src/ws/WebSocketShard.ts
@github-project-automation github-project-automation Bot moved this from Review Approved to Review in Progress in discord.js Jun 2, 2025
@LJNeon LJNeon requested a review from vladfrangu June 29, 2025 02:09
@github-project-automation github-project-automation Bot moved this from Review in Progress to Review Approved in discord.js Jul 2, 2025
@kodiakhq kodiakhq Bot merged commit 4dbeed9 into discordjs:main Jul 2, 2025
25 checks passed
@github-project-automation github-project-automation Bot moved this from Review Approved to Done in discord.js Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants